/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import exception.BuildNameNotSetException;
import exception.InvalidHostNameException;
import exception.InvalidTSException;
import exception.MachineInfoNotCompleteException;
import exception.TestScriptDirNotFoundException;
import java.util.List;

/**
 *
 * @author think
 */
public interface TSM {

    void clear();

    List getAllScriptNames() throws TestScriptDirNotFoundException;

    TestScript getScript(String scriptName, String machine, String buildName) throws InvalidTSException, InvalidHostNameException, BuildNameNotSetException, MachineInfoNotCompleteException;

    TestScript getScript(String name) throws InvalidTSException, InvalidHostNameException, BuildNameNotSetException, MachineInfoNotCompleteException;

    TestScript getScript(String name, String machine) throws InvalidTSException, InvalidHostNameException, MachineInfoNotCompleteException, BuildNameNotSetException;

    List<String> getScriptNames(String pattern) throws TestScriptDirNotFoundException;

}
